package seismosurfer.data;

import java.util.Collection;

import seismosurfer.util.Assert;

/**
 * Extends {@link QuakeData} so that it can hold all the 
 * magnitudes associated with a particular earthquake.
 *
 */
public class QuakeAggregate extends QuakeData {
    
    private static final long serialVersionUID = -1613881546808040877L;

    private Collection magnitudes;

    public QuakeAggregate() {
    }

    public QuakeAggregate(Collection magnitudes) {
        Assert.notNull(magnitudes);
        this.magnitudes = magnitudes;
    }

    public Collection getMagnitudes() {
        return magnitudes;
    }

    public void setMagnitudes(Collection magnitudes) {
        Assert.notNull(magnitudes);
        this.magnitudes = magnitudes;
    }

}